package sctu.edu.java.year2016.team04.luoxinghua.day20160519.chapter3_2;

/**
 * Created luoxinghua 2016/5/20.
 * 声名两个变量，运用三元法判断来昂个变量是否相等，若不想等输出两个数中的较大的数
 * ˼思路if{} if else{}else{}
 */
import java.util.Scanner;
public class two {
    public static void main(String[] args) {
        Scanner scanf = new Scanner(System.in);
        System.out.println("请输入两个数a,b");
       int a=scanf.nextInt();
        int b=scanf.nextInt();
        if(a==b){
            System.out.println("两个数相等");
        }
        else if(a<b){
            System.out.println("a小于b");
        }
        else{System.out.println("a大于b");
        }
    }
}
